package com.zzl.bonds.ticket.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

/**
 * @author : spp
 * @date : 2021/12/28 19:46
 */
@Data
@ApidocModel
public class StatisticsDataDto {


    @ApidocModelProperty(description = "开单笔数")
    private String allCount;
    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "开单金额（今日）")
    private Double todayAmount;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "进行中金额")
    private Double allToBeAmount;

    public String getAllCount() {
        if (null == allCount) {
            return "0";
        }
        return allCount;
    }
}
